free_pgtable_maddr was implemented the same for x86 and IA64, so it's
not necessary to define it separately for x86 and IA64. This patch
moves free_pgtable_maddr definition to iommu.c to avoid duplicated
definition.
Signed-off-by: Weidong Han <weidong.han@intel.com>
unmap_domain_page(va);
}
-void free_pgtable_maddr(u64 maddr)
-{
- if ( maddr != 0 )
- free_domheap_page(maddr_to_page(maddr));
-}
-
unsigned int get_cache_line_size(void)
{
return L1_CACHE_BYTES;
return page_to_maddr(pg);
}
+void free_pgtable_maddr(u64 maddr)
+{
+ if ( maddr != 0 )
+ free_domheap_page(maddr_to_page(maddr));
+}
+
/* context entry handling */
static u64 bus_to_context_maddr(struct iommu *iommu, u8 bus)
{
unmap_domain_page(va);
}
-void free_pgtable_maddr(u64 maddr)
-{
- if ( maddr != 0 )
- free_domheap_page(maddr_to_page(maddr));
-}
-
unsigned int get_cache_line_size(void)
{
return ((cpuid_ebx(1) >> 8) & 0xff) * 8;